import axios from 'axios'

async function request(url: any) {
  axios.create({
    baseURL: '/api'
  })
  try {
    const res = await axios({
      url: '/api' + url,
      headers: {
        Authorization: 'Bearer ad55bacd-325f-4dc7-9e26-c356509d3ef0'
      }
    })
    console.log(res, 'res')
    return res
  } catch (err) {
    console.log(err)
    return err
  }
}

export default request
